package io.ooad.banking.dd.domain;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * 当事人，是自然人和机构的共同基类。作为银行账户的户主。
 * Created by yyang on 16/9/16.
 */
@Entity
@Table(name = "parties")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public abstract class Party extends AbstractEntity {

    private String name;

    public Party() {
    }

    public Party(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
